package cn.itsource.hrm.client;

import cn.itsource.hrm.document.CourseDoc;
import cn.itsource.hrm.fallback.SearchFeignFactory;
import cn.itsource.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "SEARCH-SERVER",fallbackFactory = SearchFeignFactory.class)
public interface SearchFeign {

    @RequestMapping(value="/search/onLineCourse",method= RequestMethod.POST)
    public AjaxResult onLineCourse(@RequestBody CourseDoc doc);
}
